package ace.module.oauth2.server.api.model.dto.ext;

import java.util.Map;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/3/3 9:41
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Oauth2AccessTokenDto {
  /**
   * access token value
   */
  private String accessToken;

  /**
   * access token type
   */
  private String accessType;

  /**
   * id token
   */
  private String idToken;

  /**
   * access token scope
   */
  private Set<String> scopes;

  /**
   * expire in seconds
   */
  private Long expiresIn;

  /**
   * refresh token value
   */
  private String refreshToken;

  /**
   * access token attributes
   */
  private Map<String, String> attributes;
}
